package dyyx;

import dyyx.util.CommUtil;
import dyyx.util.TransferUtil;

public class TransferMain {

	public static void main(String[] args) throws Exception {
		
		String ymlFile = "application.yml";
		byte[] bytes = CommUtil.readBytesFromResource(ymlFile);
		String yml = new String(bytes);
		System.out.println(yml);
		
		String prop = TransferUtil.yml2properties(yml);
		
		System.out.println(prop);
		
		String yml2 = TransferUtil.properties2yaml(prop);
		
		System.out.println(yml2);

		
	}
}
